home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / slider.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  99 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.27.25;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_SLIDER_H
  34. #define CLASS_SLIDER_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef INTUITION_GADGETCLASS_H
  41. #define LORIENT_HORIZ   1
  42. #endif
  43.  
  44. #ifndef LIBRARIES_GADTOOLS_H
  45. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  46. #endif
  47.  
  48. #ifndef CLASS_WINDOW_H
  49. class window ;
  50. #endif
  51.  
  52. #ifndef CLASS_GADGETLIST_H
  53. class gadgetlist ;
  54. #endif
  55.  
  56. #ifndef CLASS_GADGET_H
  57. #include "gadgets/gadget.h"
  58. #endif
  59.  
  60. // ========================================================================
  61. // ==========================  SLIDER CLASS ===============================
  62. // ========================================================================
  63.  
  64. class slider : public gadget
  65. {
  66.     long vmin ;
  67.     long vmax ;
  68. public:
  69.     long cursel ;
  70.     slider(gadgetlist *gl,
  71.            void (window::*func)(gadget *, unsigned long, unsigned short),
  72.            long min, long max, long level,
  73.            long freedom=LORIENT_HORIZ,
  74.            const char *text=NULL,
  75.            const char *lformat=NULL,
  76.            unsigned short mlen=0,
  77.            long tplace=PLACETEXT_LEFT,
  78.            long lplace=PLACETEXT_LEFT,
  79.            long (*fdisp)(Gadget *, unsigned short)=NULL) ;
  80.     void set(long level, long min=-1, long max=-1) ;
  81.     void action(unsigned long classe, unsigned short code) ;
  82.     void keystroke(BOOL shifted) ;
  83. };
  84. #endif
  85. @
  86.  
  87.  
  88. 1.1
  89. log
  90. @Initial revision
  91. @
  92. text
  93. @d1 1
  94. d43 2
  95. a44 2
  96.            STRPTR text=NULL,
  97.            STRPTR lformat=NULL,
  98. @
  99.